package com.java.zhuiyun.api.idiomAdventureManager.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName IdiomAdventureQuestionBank
 * @Description TODO 冒险成语题库表
 * @Author WX
 * @Date 2023/9/13 9:02
 **/
@Data
@Table(name = "idiom_adventure_question_bank")
public class IdiomAdventureQuestionBank {
    private static final long serialVersionUID = 1L;
    /**
     * 成语主键id王旭
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 冒险成语
     */
    private String idiomAdventureValue;
    /**
     * 成语出处
     */
    private String idiomAdventureSource;
    /**
     * 成语释义
     */
    private String idiomAdventureInterpretation;
    /**
     * 空字下标id
     */
    private Integer idiomAdventureIndexId;
    /**
     * 同音字D
     */
    private String homophone;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    private Date updateTime;
    /**
     * 删除标识(0显示1删除)
     */
    private Integer delFlag;
    /*
    * 成语拼音
    * */
    private String idiomPinyin;
}
